package com.haredot.vo;

import com.haredot.entity.Resource;
import com.haredot.entity.User;

/**
 * 资源详情
 */
public class ResourceDetailVo extends Resource {
    /**
     * 是否被收藏
     */
    private boolean collect ;
    /**
     * 资源星级
     */
    private Integer star ;

    /**
     * 下载次数
     */
    private Integer downloadNum ;

    /**
     * 是否关注了该作者
     */
    private boolean attention ;

    /**
     * 上传者
     */
    private User uploader ;

    public boolean isCollect() {
        return collect;
    }

    public void setCollect(boolean collect) {
        this.collect = collect;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public Integer getDownloadNum() {
        return downloadNum;
    }

    public void setDownloadNum(Integer downloadNum) {
        this.downloadNum = downloadNum;
    }

    public User getUploader() {
        return uploader;
    }

    public void setUploader(User uploader) {
        this.uploader = uploader;
    }

    public boolean isAttention() {
        return attention;
    }

    public void setAttention(boolean attention) {
        this.attention = attention;
    }
}
